package com.xdb.sqlparser.dialect.oracle.ast.clause;

import java.util.ArrayList;
import java.util.List;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.dialect.oracle.ast.OracleSQLObjectImpl;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;

public class OracleSampleClause extends OracleSQLObjectImpl {

	private boolean block = false;

	private List<SQLExpr> percent = new ArrayList<SQLExpr>();

	private SQLExpr seedValue;

	public boolean isBlock() {
		return block;
	}

	public void setBlock(boolean block) {
		this.block = block;
	}

	public List<SQLExpr> getPercent() {
		return percent;
	}

	public void setPercent(List<SQLExpr> percent) {
		this.percent = percent;
	}

	public SQLExpr getSeedValue() {
		return seedValue;
	}

	public void setSeedValue(SQLExpr seedValue) {
		this.seedValue = seedValue;
	}

	@Override
	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, seedValue);
			acceptChild(visitor, percent);
		}
		visitor.endVisit(this);
	}

}
